<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>RegistryDLL: C:/Users/ojanhenr/winPeliSVN/winPeli/main.h lähdekooditiedosto</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generoinut Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pääsivu</span></a></li>
      <li><a href="namespaces.html"><span>Nimiavaruudet</span></a></li>
      <li><a href="annotated.html"><span>Luokat</span></a></li>
      <li class="current"><a href="files.html"><span>Tiedostot</span></a></li>
    </ul>
  </div>
  <div class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Tiedostolista</span></a></li>
      <li><a href="globals.html"><span>Tiedoston&nbsp;jäsenet</span></a></li>
    </ul>
  </div>
<div class="header">
  <div class="headertitle">
<h1>C:/Users/ojanhenr/winPeliSVN/winPeli/main.h</h1>  </div>
</div>
<div class="contents">
<a href="main_8h.html">Siirry tämän tiedoston dokumentaatioon.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00008"></a>00008 <span class="preprocessor">#include &lt;cstdio&gt;</span>
<a name="l00009"></a>00009 <span class="preprocessor">#include &lt;windows.h&gt;</span>
<a name="l00010"></a>00010 <span class="preprocessor">#include &lt;string.h&gt;</span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;time.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &quot;<a class="code" href="block_8h.html">block.h</a>&quot;</span>
<a name="l00013"></a>00013 <span class="preprocessor">#include &quot;<a class="code" href="snake_8h.html">snake.h</a>&quot;</span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &quot;..\RegistryDLL\registry.h&quot;</span>
<a name="l00015"></a>00015 
<a name="l00016"></a><a class="code" href="main_8h.html#a269355668f3684c64057e02ac1e71964">00016</a> <span class="keyword">const</span> <span class="keywordtype">char</span> <a class="code" href="main_8h.html#a269355668f3684c64057e02ac1e71964">g_szClassName</a>[] = <span class="stringliteral">&quot;myWindowClass&quot;</span>;
<a name="l00017"></a><a class="code" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">00017</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#aba798b12fcdeffa10019873c8b6286bf">GAMEWIDTH</a> = 20;
<a name="l00018"></a><a class="code" href="main_8h.html#a97754c65b765fd279d70772246b14b90">00018</a> <span class="keyword">const</span> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a97754c65b765fd279d70772246b14b90">GAMEHEIGHT</a> = 16;
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="preprocessor">#ifndef LANG</span>
<a name="l00021"></a><a class="code" href="main_8h.html#ad9a96c13ef87186fa4d655d45604a20a">00021</a> <span class="preprocessor"></span><span class="preprocessor">#define LANG 0</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#if LANG == 0</span>
<a name="l00025"></a><a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">00025</a> <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Vaikeusaste&quot;</span>;
<a name="l00026"></a><a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">00026</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Pisteet&quot;</span>;
<a name="l00027"></a><a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">00027</a> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;PELI OHI&quot;</span>;
<a name="l00028"></a>00028 <span class="preprocessor">#elif LANG == 1</span>
<a name="l00029"></a>00029 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Difficulty&quot;</span>;
<a name="l00030"></a>00030 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Score&quot;</span>;
<a name="l00031"></a>00031 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;GAME OVER&quot;</span>;
<a name="l00032"></a>00032 <span class="preprocessor">#elif LANG == 2</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6318aa90c9ce25281d80862cc695261e">TEXT_DIFFICULTY</a> = <span class="stringliteral">&quot;Svårighetsgrad&quot;</span>;
<a name="l00034"></a>00034 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a6f51dcf50b525d3658b1438052ecf7dd">TEXT_SCORE</a> = <span class="stringliteral">&quot;Poäng&quot;</span>;
<a name="l00035"></a>00035 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="main_8h.html#a09e0039a5f0f6c64c72198f4f65e12de">TEXT_GAMEOVER</a> = <span class="stringliteral">&quot;SPELET ÖVER&quot;</span>;
<a name="l00036"></a>00036 <span class="preprocessor">#endif</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 
<a name="l00039"></a><a class="code" href="main_8h.html#a8a6b42a99015df6ab590a41558e7fdb5">00039</a> HWND <a class="code" href="main_8h.html#a8a6b42a99015df6ab590a41558e7fdb5">hwindow</a> = NULL;
<a name="l00040"></a><a class="code" href="main_8h.html#af29130239a567c36b12334ab25532dbc">00040</a> COLORREF <a class="code" href="main_8h.html#af29130239a567c36b12334ab25532dbc">colors</a>[4] = {RGB(20,20,150), RGB(150,20,20), RGB(20,150,20), RGB(192,192,192)};
<a name="l00041"></a><a class="code" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">00041</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a0fd02fb9277ffcb35a75066ffe95e8c7">color</a> = 3;
<a name="l00042"></a><a class="code" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">00042</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a016a5d341f375d13639c75bf5987fb23">difficulty</a> = 1;
<a name="l00043"></a><a class="code" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">00043</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#aef160b7437d94056f1dc59646cd5b87d">score</a> = 0;
<a name="l00044"></a><a class="code" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">00044</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#ae5e9542e61196e233d289084760e4ab1">highscore</a> = 0;
<a name="l00045"></a><a class="code" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">00045</a> <span class="keywordtype">int</span> <a class="code" href="main_8h.html#a886d551d5381dc3e53f17825ffc51641">direction</a> = 0;
<a name="l00046"></a><a class="code" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">00046</a> <span class="keywordtype">bool</span> <a class="code" href="main_8h.html#a5b43e44f713e3c93be6db1e65774c2db">gameover</a> = <span class="keyword">false</span>;
<a name="l00047"></a>00047 
<a name="l00048"></a><a class="code" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">00048</a> <a class="code" href="class_block.html">Block</a>* <a class="code" href="main_8h.html#a62d8100f501558ad77ffb7ca29606347">food</a>;
<a name="l00049"></a><a class="code" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">00049</a> <a class="code" href="class_snake.html">Snake</a>* <a class="code" href="main_8h.html#a408cd599ea288e5b692809edb69e65c2">snake</a>;
<a name="l00050"></a>00050 
<a name="l00051"></a>00051 <span class="keywordtype">int</span> WINAPI <a class="code" href="main_8cpp.html#a661c2abc03926acfaeb93b4ae7db4943">WinMain</a>(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, <span class="keywordtype">int</span> nCmdShow);
<a name="l00052"></a>00052 DWORD WINAPI <a class="code" href="main_8cpp.html#ac76a1b9aa7a0fccc30a94b8b491a03c4">UpdateThread</a>(LPVOID lpParam);
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generoinut projektille RegistryDLL Tue Apr 12 2011 10:05:31 &nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
